package serve;

import Bean.PageBean;
import BaseQuery.BaseQuery;
import java.util.List;

public interface BaseServe <T>{
	public boolean add(T t) throws Exception;
	public boolean update(T t) throws Exception;
	public boolean delete(Integer id) throws Exception;
	public T getById(Integer id) throws Exception;
	public List<T> getAll() throws Exception;
	public PageBean<T> getByPage(BaseQuery baseQuery) throws Exception;

}
